UE.Editor.prototype.placeholder = function(justPlainText) {
	this.justPlainText = justPlainText;
	var _editor = this;
	_editor.addListener("focus", function() {
		var localHtml = _editor.getPlainTxt();
		if ($.trim(localHtml) === $.trim(justPlainText)) {
			_editor.setContent("");
		}
	});
	_editor.addListener("blur", function() {
		var localHtml = _editor.getContent();
		if (!localHtml) {
			_editor.setContent('<p style="color: #CDCDCD">' + justPlainText + '</p>');
		}
	});
	_editor.ready(function() {
		_editor.fireEvent("blur");
	});
};

UE.Editor.prototype.val = function() {
	let ret = this.getContent()
			.replace(/^<p.*?>/,"")
			.replace(/<\/p>$/,"")
			.replace(this.justPlainText,"");
	return ret;
};

